package com.paw.hys.sa.client;

import java.io.Serializable;

import com.paw.hys.sa.client.fallback.factory.ServiceHbClientFallbackFactory;
import com.paw.hys.sa.client.fallback.factory.ServiceHbClientFallbackFactory2;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author lvzihai
 * @date 2022/8/25
 **/
@Primary
@FeignClient(value = "paw-hystrix-serviceB",contextId = "ServiceHbClient",fallbackFactory = ServiceHbClientFallbackFactory.class)
public interface ServiceHbClient extends Serializable {

  @GetMapping("/callHc")
  String callHc();


}
